package io.gitee.yth.design.pattern.test.core.pattern.creational.factory.pizza;

/**
 * @author yth
 * @since 2023-04-16-23:41
 */
public abstract class Pizza {

    protected String name;

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 不同的披萨需要不同的准备
     * 比如：需要准备不同的制作材料
     */
    public abstract void prepare();

    public void bake() {
        System.out.println(name + " baking ...");
    }

    public void cut() {
        System.out.println(name + " cutting ...");
    }

    public void box() {
        System.out.println(name + " boxing ...");
    }

}
